#!/bin/bash
# 视频指定时间，获取指定帧数图片，然后结束
ffmpeg -rtsp_transport tcp -i "rtsp://admin:123456@192.168.1.121:554/Streaming/Channels/101"  -ss 3  -f image2 -vframes 1 image121.jpg

ffplay -pixel_format nv12 -f rawvideo -video_size 1920x1080 video_decode.nv12

#ffmpeg -y -f x11grab -s 1920x1080 -framerate 30 -i :0 -f pulse -i alsa_output.pci-0000_00_1b.0.analog-stereo.monitor -vf 'setpts=(RTCTIME-RTCSTART)/(TB*1000000)' -af asetpts=N/SR/TB,apad -shortest -c:v libx264 -profile:v high444 -preset:v veryfast -qp:v 0 -pix_fmt yuv444p -c:a flac screencast.mkv

ffmpeg -y -f x11grab -s 1920x1080 -framerate 10 -i :0  -c:v libx264 -profile:v high444 -preset:v veryfast -qp:v 0 -pix_fmt yuv444p -c:a flac screencast.mkv

ffmpeg -i video.mp4 -vn  -acodec libmp3lame -ac 2 -qscale:a 4 -ar 48000  audio.mp3
